<?php

namespace App\Models\Api;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Question extends Model
{
    use HasFactory;
    // 关联表
    protected $table = 'questions';
    // 定义禁止操作时间
    public $timestamps = false;
    // 定义允许写入的数据字段
    protected $fillable = ['id', 'title', 'options', 'answer', 'type', 'detail', 'sourceid', 'score', 'status'];
}
